package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class Solution189 {
    public void rotate(int[] nums, int k) {
        ArrayUtils.rotate(nums, k);
    }
}

public class leetcode189 {
    public static void main(String[] args) {
        Solution189 solution189 = new Solution189();
        int[] nums = {1, 2, 3, 4, 5, 6, 7};
        solution189.rotate(nums, 3);
        System.out.println(Arrays.toString(nums));
    }
}
